<?
// Image randomizer
$amount = 4; // Number of images total
srand((double)microtime()*1000000);
$random_image = rand(1,($amount));

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
	<META http-equiv="Content-Type" content="text/html; charset=UTF-8" />	
	<title>Child Disability Connection</title>
	<!--[if IE]><base href="http://www.childdisabilityconnection.org/"></base><![endif]-->
	<!--[if !IE]>--><base href="http://www.childdisabilityconnection.org/" /><!--<![endif]-->
	
	<meta name="Description" content="">
	<meta name="Keywords" content="">
	<meta name="Rating" CONTENT="General" />
	<meta name="ROBOTS" CONTENT="INDEX, FOLLOW" />
	<meta name="Revisit-After" CONTENT="7 days" />
	<meta name="Distribution" CONTENT="global" />
	<meta name="Author" content="Jeff Denton (dentonj@wou.edu) : The Teaching Research Institute : Western Oregon University : Monmouth Oregon">
	
	<!-- RSS Feeds -->
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.childdisabilityconnection.org/rss.php?type=event" />	
	
	<!-- Favicons -->
	<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />	
	
	<!-- CSS Style Sheets -->
	<link rel="stylesheet" type="text/css" media="screen" href="css/browserReset.css?r=<? echo random_string(5,'numeric'); ?>">
	<link rel="stylesheet" type="text/css" media="screen" href="css/stylesMozilla.css?r=<? echo random_string(5,'numeric'); ?>">
	<link rel="stylesheet" type="text/css" media="screen" href="admin/css/stylesMimeIcons.css?r=<? echo random_string(5,'numeric'); ?>">
	<!--[if IE]>
		<link rel="stylesheet" type="text/css" href="css/stylesIE.css?r=<? echo random_string(5,'numeric'); ?>" />
	<![endif]-->
	<link rel="stylesheet" type="text/css" media="print" href="css/print.css?r=<? echo random_string(5,'numeric'); ?>" />		
	
	<!-- Protaculous Stuff -->
	<script src="admin/js/protaculous/prototype1.6.js" language="JavaScript" type=text/javascript></script>
	<script src="admin/js/protaculous/scriptaculous.js?load=effects,dragdrop,combo,controls" language="JavaScript" type="text/javascript"></script>
	
	<!-- Custom JavaScript -->
	<script src="admin/js/jsCommon.js" language="JavaScript" type=text/javascript></script>
	
	<? if ($maps == 1) { ?>
	<!-- Google Maps stuff -->
	<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<?=GOOGLE_MAP_KEY; ?>" type="text/javascript"></script>
	<!-- End Google Maps stuff -->
	<? } ?>
		
	<style>
	#homePhoto {
		background: url(images/homePhotos/<?=$random_image; ?>.jpg) top no-repeat;
	}	
	.flex p, .flex span, .flex li  {
		font-size: <?=$_SESSION[ts]; ?>em;
	}
	</style>
</head>
<body>
	<div id="header" class="noPrint">
		<div id="headerContent">
			<a href="index.php" id="logo" title="<? echo $translate->_('The Child Disability Connection'); ?> : <? echo $translate->_('Home'); ?>"><h1 class="noScreen"><? echo $translate->_('The Child Disability Connection'); ?></h1></a>
			<div id="headerLinksContainer">
				<div id="headerLinksMenu">
					<ul>
						<li class="tab"><a href="about.php"><? echo $translate->_('About Us'); ?></a></li>
						<li class="tab"><a href="contacts.php"><? echo $translate->_('Contacts'); ?></a></li>
						<li class="tab"><a href="<?=$_SERVER['PHP_SELF']; ?>?to=1&<?=$urlQueryString; ?>"><? echo $translate->_('Text Only'); ?></a></li>
						<li class="tab"><a href="#" onClick="print(); return false;" title="<? echo $translate->_('Print'); ?>"><? echo $translate->_('Print'); ?></a></li>
						<li class="tab">
							<form action="<?=$_SERVER['PHP_SELF']; ?>?<?=$urlQueryString; ?>" id="formLanguage" method="POST">
							<select name="language" id="language" onChange="document.getElementById('formLanguage').submit();" size="1" style="width: 90px; border: 0; margin-top: -3px; background-color: #fff;">
							<option value="en" <? if ($_SESSION['language'] == 'en') { echo 'selected'; } ?>><? echo $translate->_('English'); ?></option>
							<option value="es" <? if ($_SESSION['language'] == 'es') { echo 'selected'; } ?>><? echo $translate->_('Spanish'); ?></option>
							<option value="ru" <? if ($_SESSION['language'] == 'ru') { echo 'selected'; } ?>><? echo $translate->_('Russian'); ?></option>
							</select>
							</form>
						</li>
					</ul>					
				</div>
				<div style="clear: left;"></div>
				
				<div style="height: 50px;"><!-- Spacer Cell --></div>
				<div id="headerLinksBottom" class="noPrint">
					<? if ($_SESSION['logged'] != 1) { ?>
					<p style="margin: 0 0 5px 135px;"><a href="accountCreate.php">Create my account</a></p>
					<? } ?>
					<div style="float: right;">
						<? if ($_SESSION['logged'] != 1) { ?>
						<form style="float: left;" action="accountLogin.php?login=1" method="POST">
						<div style="float: left;">
							<input type="text" name="email" style="font-weight: bold; width: 150px;" value="<? echo $translate->_('Parent Login'); ?> (<? echo $translate->_('your email'); ?>)" onFocus="this.value='';" /></div>
						<div style="float: left; margin-left: 2px;">
							<input type="submit" value="Login" title="Login" class="buttonSmallGrayGo" />
						</div>
						</form>
						<? } else { ?>
						<div style="float: left; margin-right: 50px;">
							<p><a href="accountHome.php">Welcome
							<? 
							$fullName = trim($_SESSION['fullName']);
							if (!empty($fullName)) {
								echo ', '.$fullName;
							}
							?></a></p>
						</div>
						<? } ?>
						<div style="float: left; margin: 0 5px 0 5px;">
							<p><? echo $translate->_('Font Size'); ?></p>
						</div>
						<div class="buttonSmallGray" style="padding-left: 4px; float: left;">
							<p><a href="<?=$_SERVER[PHP_SELF]; ?>?ts=larger" class="plus"><span class="noScreen">Larger</span></a></p>
						</div>
						<div class="buttonSmallGray" style="padding-left: 5px; float: left;">
							<p><a href="<?=$_SERVER[PHP_SELF]; ?>?ts=smaller" class="minus"><span class="noScreen">Smaller</span></a></p>
						</div>
						<div style="clear: left;"></div>
					</div>	
				</div>
			</div>
		</div>
	</div>
	<div style="clear: both; height: 0px;"></div>
	
	<div id="pageMid">
		<div id="<?=$pageBGCSSClass; ?>">
			<div id="pageContent">	
				<? if ($mainMenu == 1) { ?>
				<div id="mainMenuBar" class="noPrint">
					<div id="mainMenuLinks">
						<ul>
							<li class="tab"><a href="index2.php"><? echo $translate->_('Home'); ?></a></li>
							<li class="tab"><a href="resourceSearch.php"><? echo $translate->_('Find Local Resources'); ?></a></li>
							<li class="tab"><a href="libraryView.php?viewBy=category"><? echo $translate->_('Lending Library'); ?></a></li>
							<li class="tab"><a href="events.php"><? echo $translate->_('Conferences and Events'); ?></a></li>
                                   <li class="tab"><a href="careNotebook.php"><? echo $translate->_('Care Notebook'); ?></a></li>
						</ul>
					</div>	
				</div>
				<? } ?>